import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index'
import Activity from "../views/Activity";
import Article from "../views/Article";
import OfficialInformation from "../views/OfficialInformation";
import Register from "../views/Register";
import Login from "../views/Login";
import User from "../views/User"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Index',
    component: Index
  },  {
    path: '/activity',
    name: 'Activity',
    component: Activity
  },  {
    path: '/officialInformation',
    name: 'OfficialInformation',
    component: OfficialInformation
  },  {
    path: '/register',
    name: 'Register',
    component: Register
  }, {
    path: '/login',
    name: 'Login',
    component: Login
  } ,{
    path: '/article',
    name: 'Article',
    component: Article
  },{
    path: '/user',
    name: 'User',
    component: User
  }

]

const router = new VueRouter({
  routes,
  // mode:'history',
  base:'/three/'
})

export default router
